home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 42 / Amiga Format AFCD42 (Issue 126, Aug 1999).iso / -serious- / programming / amos / amoslist-0499 / amoslist / 000093_nobody_Sun Apr 11 04:55:17 1999.msg < prev    next >
Internet Message Format  |  1999-05-17  |  3KB

  1. Received: from onelist.com (pop.onelist.com [209.207.135.229])
  2.     by osf1.gmu.edu (8.8.8/8.8.8) with SMTP id EAA10819
  3.     for <mcox4@osf1.gmu.edu>; Sun, 11 Apr 1999 04:55:16 -0400 (EDT)
  4. Received: (qmail 16557 invoked by alias); 11 Apr 1999 08:40:47 -0000
  5. Received: (qmail 16529 invoked from network); 11 Apr 1999 08:40:46 -0000
  6. Received: from unknown (HELO mail.enterprise.net) (194.72.192.18) by pop.onelist.com with SMTP; 11 Apr 1999 08:40:46 -0000
  7. Received: from enterprise.net (andrewcrowe@max02-082.enterprise.net [194.72.195.202]) by mail.enterprise.net (8.8.5/8.8.5) with SMTP id JAA05231 for <amos-list@onelist.com>; Sun, 11 Apr 1999 09:55:11 +0100 (GMT/BST)
  8. From: Andrew Crowe <andrewcrowe@enterprise.net>
  9. To: amos-list@onelist.com
  10. Date: Sun, 11 Apr 1999 09:54:41 +0000
  11. Message-ID: <yam7770.2096.1197673872@mail.enterprise.net>
  12. In-Reply-To: <370FEF00.5C78@space.net.au>
  13. X-Mailer: YAM 2.0Preview7 [020] - Amiga Mailer by Marcel Beck - http://www.yam.ch
  14. Mailing-List: list amos-list@onelist.com; contact amos-list-owner@onelist.com
  15. Delivered-To: mailing list amos-list@onelist.com
  16. Precedence: bulk
  17. List-Unsubscribe: <mailto:amos-list-unsubscribe@ONElist.com>
  18. Reply-to: amos-list@onelist.com
  19. Mime-Version: 1.0
  20. Content-Type: text/plain
  21. Subject: [amos-list] Re: AI programming.
  22. Status: O
  23. X-Status: 
  24.  
  25. From: Andrew Crowe <andrewcrowe@enterprise.net>
  26.  
  27. Hi Everybody,
  28.  
  29. > One way to speed up your code instantly is to split up your code so that
  30. > it executes over several cycles.
  31. > For example...
  32. > 1.  First cycle - scan player pos / figure out where player is heading
  33. > 2.  Second cycle - do nothing 
  34. > 3.  Third cycle - calculate firing / attack positions and execute
  35. > 4.  Fourth cycle - do nothing 
  36. > 5.  Fifth cycle - finish AI calculation and execute
  37. > 6.  Sixth cycle - do nothing.
  38. > This will speed up the processing of the game and even though the AI is
  39. > running at about 1/6th the speed, because the frame update is so fast,
  40. > and the player can only react at a certain speed you will get the
  41. > illusion that the computer is reacting every cycle.
  42. > You will have to keep missiles moving and enemy moving along their old
  43. > paths during the 'do nothing' cycles.
  44.  
  45.    Done a similer thing already: The AI only thinks once every few frames.
  46. the rest of the time its just moving where it wants to go. By adjusting the
  47. cycle gap before re-thinks I can adjust there 'intelligence'.
  48.  
  49.    Still, without at least an 030 it still runs way too slow.
  50.  
  51. See ya.
  52. -- 
  53.        Manta Soft  -  Amiga programing & web page designing
  54.    Http://members.tripod.com/~mantasoft/      ICQ: 21829166
  55.      Homepage updated 27/3/99 --- New Bomberman clone started
  56.   - ------------------- Quote of the day: -------------------- -
  57. Its the same room but everythings different, you can find the
  58. sleep but not the dream...
  59. -- Crowded House
  60.  
  61.  
  62. ------------------------------------------------------------------------
  63. To unsubscribe from this mailing list, or to change your subscription
  64. to digest, go to the ONElist web site, at http://www.onelist.com and
  65. select the Member Center link from the menu bar on the left.
  66. ------------------------------------------------------------------------
  67. Official AMOS WWW: http://members.xoom.com/AmosFactory/front.html